package com.myersinfosys.protrack.vfs;

import java.net.URL;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.vfs.FileSystemException;
import org.apache.commons.vfs.impl.StandardFileSystemManager;

/** FileSessionConnector - Public class handling the management of file sessions - StandardFileSystemManager wrapper.
*
* @author E.Morris
* @version 4/15/2011
*/
public class FileSessionManager extends StandardFileSystemManager {
	private URL configUrl = null;
	private Log log = LogFactory.getLog(this.getClass());
	
	public FileSessionManager() throws FileSystemException {
		super();
		
		configUrl = vfs.class.getResource("providers.xml");
		this.setConfiguration(configUrl);
		this.setLogger(log);
		this.init();
	}
	
	public Log getLogger() {
		return this.log;
	}	
	
	public void closeManager() {
		this.close();
	}

}
